<?php
  $ignore_channels = Array('##bot-dev');
  if($command == 'INVITE'){
    if(!in_array(strtolower(trim($message)), $ignore_channels)){
      chan_join(trim($message));
      action('moos at ' . $source_nick, trim($message));
    }
  }
?>